// JavaScript Document
$(document).ready(function(){
	$("span#login").hover(function()
	{$("#header_right").css("background"," url(img/header_right_login_bg.png) bottom left no-repeat");
		},function(){$("#header_right").css("background"," url(img/header_right_bg.png) bottom left no-repeat");})
	})
$(document).ready(function(){
	$("span#register").hover(function()
	{$("#header_right").css("background"," url(img/header_right_register_bg.png) bottom left no-repeat");
		},function(){$("#header_right").css("background"," url(img/header_right_bg.png) bottom left no-repeat");})
	})
$(document).ready(function(){
	$("span#forgetpw").hover(function()
	{$("#header_right").css("background"," url(img/header_right_forgotpw_bg.png) bottom left no-repeat");
		},function(){$("#header_right").css("background"," url(img/header_right_bg.png) bottom left no-repeat");})
	})
$(document).ready(function(){
	$("span#login").click(function()
	{$("#loginform.information#loginform").css("display","block")
	 $("#loading").css("display","none");
		})
	})
$(document).ready(function(){
	$("#loginform .btn.cancel").click(function()
	{$(".information").css("display","none");
		})
	})
$(document).ready(function(){
	$("#loginform .btn.submit").click(function(){
		$("#loginform.information").css("display","none")
		$("#loading.information").css("display","block")
		})
	})
$(document).ready(function(){
	$("#Lcancel").click(function(){
		$("#loginform.information").css("display","block")
		$("#loading.information").css("display","none")
		})
	})
$(document).ready(function(){
  $("#news a").hover(function(){
  $(this).css("color","#198c02");  
  $(this).css("text-shadow","1px 1px 3px #999999");
  $(this).stop().animate({marginLeft:"20px"},"100");
  },function(){ 
    $(this).css("color","#0088e6");
  	$(this).css("text-shadow","none");
    $(this).stop().animate({marginLeft:"0px"},"100");
  });
});

$(function(){
	$("#experience ul li a.pic").hover(function(){
		var index = $("#experience ul li").index($(this).parents());
		$("#experience ul li:eq("+ index +") a.pic img").attr({src:"img/down_"+ (index + 1) +"_small_hover.png"});
	},function(){
		var index = $("#experience ul li").index($(this).parents());
		$("#experience ul li:eq("+ index +") a.pic img").attr({src:"img/down_"+ (index + 1) +"_small.png"});
	});
})